Optimal. Leaf size=125 \[ \frac {g (b c-a d) \log \left (\frac {b c-a d}{b (c+d x)}\right ) \left (B \log \left (\frac {e (a+b x)}{c+d x}\right )+A+B\right )}{d^2 i}+\frac {g (a+b x) \left (B \log \left (\frac {e (a+b x)}{c+d x}\right )+A\right )}{d i}+\frac {B g (b c-a d) \text {Li}_2\left (\frac {d (a+b x)}{b (c+d x)}\right )}{d^2 i} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.35, antiderivative size = 213, normalized size of antiderivative = 1.70, number of steps used = 14, number of rules used = 11, integrand size = 38, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.290, Rules used = {2528, 2486, 31, 2524, 12, 2418, 2394, 2393, 2391, 2390, 2301} \[ \frac {B g (b c-a d) \text {PolyLog}\left (2,\frac {b (c+d x)}{b c-a d}\right )}{d^2 i}-\frac {g (b c-a d) \log (c+d x) \left (B \log \left (\frac {e (a+b x)}{c+d x}\right )+A\right )}{d^2 i}-\frac {B g (b c-a d) \log ^2(c+d x)}{2 d^2 i}+\frac {B g (b c-a d) \log (c+d x) \log \left (-\frac {d (a+b x)}{b c-a d}\right )}{d^2 i}-\frac {B g (b c-a d) \log (c+d x)}{d^2 i}+\frac {B g (a+b x) \log \left (\frac {e (a+b x)}{c+d x}\right )}{d i}+\frac {A b g x}{d i} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 31
Rule 2301
Rule 2390
Rule 2391
Rule 2393
Rule 2394
Rule 2418
Rule 2486
Rule 2524
Rule 2528
Rubi steps
\begin {align*} \int \frac {(a g+b g x) \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{33 c+33 d x} \, dx &=\int \left (\frac {b g \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{33 d}+\frac {(-b c+a d) g \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{33 d (c+d x)}\right ) \, dx\\ &=\frac {(b g) \int \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right ) \, dx}{33 d}-\frac {((b c-a d) g) \int \frac {A+B \log \left (\frac {e (a+b x)}{c+d x}\right )}{c+d x} \, dx}{33 d}\\ &=\frac {A b g x}{33 d}-\frac {(b c-a d) g \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{33 d^2}+\frac {(b B g) \int \log \left (\frac {e (a+b x)}{c+d x}\right ) \, dx}{33 d}+\frac {(B (b c-a d) g) \int \frac {(c+d x) \left (-\frac {d e (a+b x)}{(c+d x)^2}+\frac {b e}{c+d x}\right ) \log (c+d x)}{e (a+b x)} \, dx}{33 d^2}\\ &=\frac {A b g x}{33 d}+\frac {B g (a+b x) \log \left (\frac {e (a+b x)}{c+d x}\right )}{33 d}-\frac {(b c-a d) g \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{33 d^2}-\frac {(B (b c-a d) g) \int \frac {1}{c+d x} \, dx}{33 d}+\frac {(B (b c-a d) g) \int \frac {(c+d x) \left (-\frac {d e (a+b x)}{(c+d x)^2}+\frac {b e}{c+d x}\right ) \log (c+d x)}{a+b x} \, dx}{33 d^2 e}\\ &=\frac {A b g x}{33 d}+\frac {B g (a+b x) \log \left (\frac {e (a+b x)}{c+d x}\right )}{33 d}-\frac {B (b c-a d) g \log (c+d x)}{33 d^2}-\frac {(b c-a d) g \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{33 d^2}+\frac {(B (b c-a d) g) \int \left (\frac {b e \log (c+d x)}{a+b x}-\frac {d e \log (c+d x)}{c+d x}\right ) \, dx}{33 d^2 e}\\ &=\frac {A b g x}{33 d}+\frac {B g (a+b x) \log \left (\frac {e (a+b x)}{c+d x}\right )}{33 d}-\frac {B (b c-a d) g \log (c+d x)}{33 d^2}-\frac {(b c-a d) g \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{33 d^2}+\frac {(b B (b c-a d) g) \int \frac {\log (c+d x)}{a+b x} \, dx}{33 d^2}-\frac {(B (b c-a d) g) \int \frac {\log (c+d x)}{c+d x} \, dx}{33 d}\\ &=\frac {A b g x}{33 d}+\frac {B g (a+b x) \log \left (\frac {e (a+b x)}{c+d x}\right )}{33 d}-\frac {B (b c-a d) g \log (c+d x)}{33 d^2}+\frac {B (b c-a d) g \log \left (-\frac {d (a+b x)}{b c-a d}\right ) \log (c+d x)}{33 d^2}-\frac {(b c-a d) g \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{33 d^2}-\frac {(B (b c-a d) g) \operatorname {Subst}\left (\int \frac {\log (x)}{x} \, dx,x,c+d x\right )}{33 d^2}-\frac {(B (b c-a d) g) \int \frac {\log \left (\frac {d (a+b x)}{-b c+a d}\right )}{c+d x} \, dx}{33 d}\\ &=\frac {A b g x}{33 d}+\frac {B g (a+b x) \log \left (\frac {e (a+b x)}{c+d x}\right )}{33 d}-\frac {B (b c-a d) g \log (c+d x)}{33 d^2}+\frac {B (b c-a d) g \log \left (-\frac {d (a+b x)}{b c-a d}\right ) \log (c+d x)}{33 d^2}-\frac {(b c-a d) g \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{33 d^2}-\frac {B (b c-a d) g \log ^2(c+d x)}{66 d^2}-\frac {(B (b c-a d) g) \operatorname {Subst}\left (\int \frac {\log \left (1+\frac {b x}{-b c+a d}\right )}{x} \, dx,x,c+d x\right )}{33 d^2}\\ &=\frac {A b g x}{33 d}+\frac {B g (a+b x) \log \left (\frac {e (a+b x)}{c+d x}\right )}{33 d}-\frac {B (b c-a d) g \log (c+d x)}{33 d^2}+\frac {B (b c-a d) g \log \left (-\frac {d (a+b x)}{b c-a d}\right ) \log (c+d x)}{33 d^2}-\frac {(b c-a d) g \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{33 d^2}-\frac {B (b c-a d) g \log ^2(c+d x)}{66 d^2}+\frac {B (b c-a d) g \text {Li}_2\left (\frac {b (c+d x)}{b c-a d}\right )}{33 d^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.11, size = 162, normalized size = 1.30 \[ \frac {g \left (-2 (b c-a d) \log (c+d x) \left (B \log \left (\frac {e (a+b x)}{c+d x}\right )+A\right )+2 B d (a+b x) \log \left (\frac {e (a+b x)}{c+d x}\right )+B (b c-a d) \left (2 \text {Li}_2\left (\frac {b (c+d x)}{b c-a d}\right )+\log (c+d x) \left (2 \log \left (\frac {d (a+b x)}{a d-b c}\right )-\log (c+d x)\right )\right )-2 B (b c-a d) \log (c+d x)+2 A b d x\right )}{2 d^2 i} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.73, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {A b g x + A a g + {\left (B b g x + B a g\right )} \log \left (\frac {b e x + a e}{d x + c}\right )}{d i x + c i}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.13, size = 895, normalized size = 7.16 \[ \frac {B \,a^{2} e g \ln \left (\frac {b e}{d}+\frac {\left (a d -b c \right ) e}{\left (d x +c \right ) d}\right )}{\left (\frac {a d e}{d x +c}-\frac {b c e}{d x +c}\right ) \left (d x +c \right ) i}-\frac {2 B a b c e g \ln \left (\frac {b e}{d}+\frac {\left (a d -b c \right ) e}{\left (d x +c \right ) d}\right )}{\left (\frac {a d e}{d x +c}-\frac {b c e}{d x +c}\right ) \left (d x +c \right ) d i}+\frac {B \,b^{2} c^{2} e g \ln \left (\frac {b e}{d}+\frac {\left (a d -b c \right ) e}{\left (d x +c \right ) d}\right )}{\left (\frac {a d e}{d x +c}-\frac {b c e}{d x +c}\right ) \left (d x +c \right ) d^{2} i}+\frac {B a b e g \ln \left (\frac {b e}{d}+\frac {\left (a d -b c \right ) e}{\left (d x +c \right ) d}\right )}{\left (\frac {a d e}{d x +c}-\frac {b c e}{d x +c}\right ) d i}-\frac {B \,b^{2} c e g \ln \left (\frac {b e}{d}+\frac {\left (a d -b c \right ) e}{\left (d x +c \right ) d}\right )}{\left (\frac {a d e}{d x +c}-\frac {b c e}{d x +c}\right ) d^{2} i}+\frac {A a b e g}{\left (\frac {a d e}{d x +c}-\frac {b c e}{d x +c}\right ) d i}-\frac {A \,b^{2} c e g}{\left (\frac {a d e}{d x +c}-\frac {b c e}{d x +c}\right ) d^{2} i}-\frac {B a g \ln \left (-\frac {-b e +\left (\frac {b e}{d}+\frac {\left (a d -b c \right ) e}{\left (d x +c \right ) d}\right ) d}{b e}\right ) \ln \left (\frac {b e}{d}+\frac {\left (a d -b c \right ) e}{\left (d x +c \right ) d}\right )}{d i}+\frac {B b c g \ln \left (-\frac {-b e +\left (\frac {b e}{d}+\frac {\left (a d -b c \right ) e}{\left (d x +c \right ) d}\right ) d}{b e}\right ) \ln \left (\frac {b e}{d}+\frac {\left (a d -b c \right ) e}{\left (d x +c \right ) d}\right )}{d^{2} i}-\frac {A a g \ln \left (-b e +\left (\frac {b e}{d}+\frac {\left (a d -b c \right ) e}{\left (d x +c \right ) d}\right ) d \right )}{d i}+\frac {A b c g \ln \left (-b e +\left (\frac {b e}{d}+\frac {\left (a d -b c \right ) e}{\left (d x +c \right ) d}\right ) d \right )}{d^{2} i}-\frac {B a g \dilog \left (-\frac {-b e +\left (\frac {b e}{d}+\frac {\left (a d -b c \right ) e}{\left (d x +c \right ) d}\right ) d}{b e}\right )}{d i}-\frac {B a g \ln \left (-b e +\left (\frac {b e}{d}+\frac {\left (a d -b c \right ) e}{\left (d x +c \right ) d}\right ) d \right )}{d i}+\frac {B b c g \dilog \left (-\frac {-b e +\left (\frac {b e}{d}+\frac {\left (a d -b c \right ) e}{\left (d x +c \right ) d}\right ) d}{b e}\right )}{d^{2} i}+\frac {B b c g \ln \left (-b e +\left (\frac {b e}{d}+\frac {\left (a d -b c \right ) e}{\left (d x +c \right ) d}\right ) d \right )}{d^{2} i} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.68, size = 221, normalized size = 1.77 \[ A b g {\left (\frac {x}{d i} - \frac {c \log \left (d x + c\right )}{d^{2} i}\right )} + \frac {A a g \log \left (d i x + c i\right )}{d i} - \frac {{\left (b c g - a d g\right )} {\left (\log \left (b x + a\right ) \log \left (\frac {b d x + a d}{b c - a d} + 1\right ) + {\rm Li}_2\left (-\frac {b d x + a d}{b c - a d}\right )\right )} B}{d^{2} i} + \frac {{\left (a d g \log \relax (e) - {\left (g \log \relax (e) + g\right )} b c\right )} B \log \left (d x + c\right )}{d^{2} i} - \frac {2 \, B b d g x \log \left (d x + c\right ) - 2 \, B b d g x \log \relax (e) - {\left (b c g - a d g\right )} B \log \left (d x + c\right )^{2} - 2 \, {\left (B b d g x + B a d g\right )} \log \left (b x + a\right )}{2 \, d^{2} i} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {\left (a\,g+b\,g\,x\right )\,\left (A+B\,\ln \left (\frac {e\,\left (a+b\,x\right )}{c+d\,x}\right )\right )}{c\,i+d\,i\,x} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {g \left (\int \frac {A a}{c + d x}\, dx + \int \frac {A b x}{c + d x}\, dx + \int \frac {B a \log {\left (\frac {a e}{c + d x} + \frac {b e x}{c + d x} \right )}}{c + d x}\, dx + \int \frac {B b x \log {\left (\frac {a e}{c + d x} + \frac {b e x}{c + d x} \right )}}{c + d x}\, dx\right )}{i} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________